package com.example.com.daervideo.vm;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;

import com.example.com.daervideo.activitys.users.ConvertTicketActivity;
import com.example.com.daervideo.activitys.users.HuozuanActivity;
import com.example.com.daervideo.activitys.users.MoneyRecordActivity;
import com.example.com.daervideo.activitys.users.RechargeActivity;
import com.example.com.daervideo.activitys.users.WalletActivity;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * Created by i7-1 on 2018/12/3.
 */

public class WalletViewModel extends BaseViewModel {
    public WalletViewModel(Context walletActivity) {
        super(walletActivity);
    }


    public BindingCommand toMoneyRecord = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            Bundle bundle = new Bundle();
            bundle.putInt("index",1);
            startActivity(MoneyRecordActivity.class,bundle);
        }
    });

    public BindingCommand toHuozuan = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startActivity(HuozuanActivity.class);
        }
    });
    public BindingCommand toConvertTicket = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startActivity(ConvertTicketActivity.class);
        }
    });
    public BindingCommand recharge = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startActivity(RechargeActivity.class);
        }
    });

    public BindingCommand toTicketrRcive = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            Bundle bundle = new Bundle();
            bundle.putInt("index",2);
            startActivity(MoneyRecordActivity.class,bundle);
        }
    });


}
